<template>
  <div class="toggleClassWrap">
    <!-- <model-vue v-if="ifShow" v-model="ifShow"></model-vue> -->
    <!-- 完整写法 -->
    <custom v-if="ifShow" :value="ifShow" v-on:input="trigger"></custom>
  </div>
</template>
<script type="text/javascript">
import modelVue from "@/views/forInterview/5_10/model.vue";
export default {
  data() {
    return {
      ifShow: true
    };
  },
  components: {
    custom: modelVue
  },
  methods: {
    trigger(e) {
      console.log(e);
      this.ifShow = e;
      // console.log("event", this.$event);
    }
  }
};
</script>
